package repository

import (
	"github.com/yejingxuan/accumulate/domain/entity"
	"time"
)

type StockRepo interface {
	CreateStock(stock *entity.Stock) error                     //添加信息
	UpdateStockRecentKine(symbol, data string) error           //更新清洗后的kline数据
	UpdateStockTags(symbol, tags string) error                 //更新标签
	Follow(symbol string, serviceSymbol string, price float64, status string, date time.Time) error //关注stock
	DelAllStock() error                                        //删除所有的基本数据
	Comment(symbol string, comment string) error               //评论stock

	GetStockPageInfo(name string, symbol string, tags []string, status string, types []string, pageSize int,
		pageNo int, sortField string, sortOrder string) ([]entity.StockAllInfo, int, error) //分页获取stock信息
	GetStockInfoByCode(code string) (*entity.StockAllInfo, error)                           //获取详情
}
